import { EaseChatClient } from "../initImSdk";
export const loginIm = () => {
  const login = async () => {
    const res = await EaseChatClient.open({
      user: "chaojiwudibawanglongzhanshi",
      accessToken:
        "YWMtVrEYkBtWEfC49jUxQ9wJp3oxHBd780nDifPJWp4EqRPZrqawG1QR8JDlrUiEYkwhAwMAAAGWQnbdljeeSAAXDCnqDTLkhZ0vlcFhXTB2XFuNtfjQB0hoakamAi57Rw",
    });
    console.log(res, "11111111111111111111");
  };
  const logout = () => {
    EaseChatClient.close();
  };
  return {
    login,
    logout,
  };
};
